package cn.highedu.coolshark.account.controller;


import cn.highedu.coolshark.account.pojo.vo.RoleListItemVO;
import cn.highedu.coolshark.account.service.IRoleService;
import cn.highedu.coolshark.common.JsonResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 处理角色相关请求的控制器
 *
 * @author java@tedu.cn
 * @version 0.0.1
 */
@Slf4j
@RestController
@RequestMapping("/roles")
public class RoleController {

    @Autowired
    private IRoleService roleService;

    public RoleController() {
        log.debug("创建控制器对象：RoleController");
    }

//    @PostMapping("/list")
//    public JsonResult<List<RoleListItemVO>> list(
//            @RequestBody RoleListItemDTO roleListItemDTO) {
//        log.debug("开始处理【查询角色列表】的请求，无参数");
//        List<RoleListItemVO> list = roleService.list();
//        return JsonResult.ok(list);
//    }

}
